<template>
	<!--pages/webview/webview.wxml-->
	<view class="page-body">
		<view class="page-section page-section-gap">
			<web-view v-if="url" :src="url"></web-view>
			<j-video :url="video" width="750rpx"></j-video>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: '',
				video: ''
			};
		},

		components: {},
		props: {},

		/**
		 * 生命周期函数--监听页面加载
		 */
		onLoad: function(options) {
			if (options.id) {
				this.url = uni.getStorageSync(options.id)
			}
			if (options.fileId) {
				this.url = uni.getStorageSync('bg-' + options.fileId)
			}

			if (options.url) {
				this.url = options.url
			}
			
			if (options.video) {
				this.video = options.video
			}
		},
		methods: {}
	};
</script>
<style>
	/* pages/webview/webview.wxss */
	.page-section-gap {
		box-sizing: border-box;
		padding: 0 30rpx;
	}
</style>